package org.hyd.service.impl;

import org.hyd.mapper.StudentMapper;
import org.hyd.model.Student;
import org.hyd.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper studentMapper;
    @Override
    //学生登录
    public Student studentLogin(String studentId, String password) {
        return studentMapper.studentLogin(studentId,password);
    }
    @Override
    //根据学号查询
    public Student selectStudentById(String studentId) {
        return studentMapper.selectStudentById(studentId);
    }
}
